demos: make alienplanet demo work on macOS OpenGL
authorChristian Hergert <chergert@redhat.com>
Thu, 3 Dec 2020 18:20:11 +0000 (10:20 -0800)
committerChristian Hergert <chergert@redhat.com>
Thu, 3 Dec 2020 18:23:13 +0000 (10:23 -0800)
commit8e62ff50febaf05a5b1f4900f6c5ea52713383c7
treef4d6d2046fdce83ca1d59e70bb57a4295fd8077a
parent0daa905a2709512160215d261c3165aec19b6447
demos: make alienplanet demo work on macOS OpenGL

On the macOS OpenGL implementation, the use of noise2 as a
function within the glsl shader collides with the builtin noise2 of a
different signature.

This changes the name to something similar (noize2) so that we
do not risk colliding names when linking.

With this commit, the shadertoy alienplanet demo works on mac
OpenGL (albeit still with the Cairo renderer).
demos/gtk-demo/alienplanet.glsl